package com.lagou.wwyan.rpc;

import com.lagou.wwyan.rpc.client.RPCBoot;
import com.lagou.wwyan.rpc.service.UserService;

//@SpringBootApplication
public class RpcClientApplication {

	public static void main(String[] args) throws InterruptedException {
//		SpringApplication.run(RpcClientApplication.class, args);

		RPCBoot boot = new RPCBoot();
		boot.initClient();
		UserService service= boot.createProxy(UserService.class);
//2.循环给服务器写数据
		while (true){
			String result = service.sayHello("are you ok !!");
			System.out.println("sayHello:"+result);

			Thread.sleep(2000);
		}
	}

}
